package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.RoleDto;
import com.zzyl.vo.RoleVo;

import java.util.List;
import java.util.Set;

public interface RoleService {

    /*
    * 查询角色列表
     */
    PageResponse<RoleVo> findRolePage(RoleDto roleDto, int pageNum, int pageSize);

    /**
     * 保存角色
     *
     * @param roleDto
     */
    void createRole(RoleDto roleDto);

    Set<String> findCheckResource(Long roleId);

    Boolean updateRole(RoleDto roleDto);

    void deleteById(Long roleId);

    List<RoleVo> findRoleVoListInUserId(List<Long> userIds);

    List<RoleVo> getRoleList();


}
